package com.advertisementsystem.Dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class PaymentDTO {
    @NotNull(message = "协商ID不能为空")
    private Long negotiationId;

    @NotBlank(message = "支付方式不能为空")
    @Pattern(regexp = "ALIPAY|WECHAT", message = "支付方式不正确")
    private String payMethod;
}